Ribbon for WinForms | ComponentOne
C1.Win.Collections.ObjectModel Namespace / ObservableDictionary<TKey,TValue> Class / TryGetValue Method
The key whose value to get.
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

In This Topic
    TryGetValue Method (ObservableDictionary<TKey,TValue>)
    In This Topic
    Gets the value associated with the specified key.
    Syntax
    'Declaration
     
    
    Public Function TryGetValue( _
       ByVal key As TKey, _
       ByRef value As TValue _
    ) As Boolean
    public bool TryGetValue( 
       TKey key,
       out TValue value
    )

    Parameters

    key
    The key whose value to get.
    value
    When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

    Return Value

    true if the object that implements ObservableDictionary<TKey,TValue> contains an element with the specified key; otherwise, false.
    See Also